using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            XmlDocument doc=new XmlDocument();

           string temp= country1.GetCurrencyByCountry(CountryNameTextBox.Text);
           doc.LoadXml(temp);
        
           CurrencyTextBox.Text = doc.GetElementsByTagName("Currency").Item(0).FirstChild.Value;
           doc.LoadXml(country1.GetISD(CountryNameTextBox.Text));
           PhoneTextBox.Text = doc.GetElementsByTagName("code").Item(0).FirstChild.Value;
            doc.LoadXml(country1.GetGMTbyCountry(CountryNameTextBox.Text));

            LocalTimeTextBox.Text = doc.GetElementsByTagName("GMT").Item(0).FirstChild.Value;
        }
    }
}